/*****************************************************************************
*        描述 :
*             文件描述
*        CLR版本:            3.5
*        创建者 :            蒋 光
*        个人域名:           jiangguang.net.cn
*        命名空间名称:       ECP.Utilities
*        文件名:             BaseUserInfo.cs
*        创建系统时间:       2012/11/2 19:07:08
*        创建年份:           2012
*
/*****************************************************************************/

namespace ECP.Utilities
{
    using System;

    [Serializable]
    public class BaseUserInfo
    {
        private string code = string.Empty;
        private string companyCode = string.Empty;
        private string companyFullName = string.Empty;
        private string companyID = string.Empty;
        private string currentLanguage = string.Empty;
        private string departmentCode = string.Empty;
        private string departmentFullName = string.Empty;
        private string departmentID = string.Empty;
        private string description = string.Empty;
        private string id = string.Empty;
        private string ipAddress = string.Empty;
        private bool isAdministrator;
        private string macAddress = string.Empty;
        private string password = string.Empty;
        private string realname = string.Empty;
        private string role = string.Empty;
        private string roleFullName = string.Empty;
        private string staffID = string.Empty;
        private string suid = string.Empty;
        private string themes = string.Empty;
        private string userName = string.Empty;
        private string webServicePassword = "ShowLight";
        private string webServiceUsername = "ShowLight";
        private string workgroupCode = string.Empty;
        private string workgroupFullName = string.Empty;
        private string workgroupID = string.Empty;

        public BaseUserInfo()
        {
            this.GetUserInfo();
        }

        public void GetUserInfo()
        {
            this.WebServiceUsername = BaseConfiguration.Instance.WebServiceUsername;
            this.WebServicePassword = BaseConfiguration.Instance.WebServicePassword;
            this.SUID = BaseSystemInfo.SUID;
            this.ID = BaseSystemInfo.UserID;
            this.StaffID = BaseSystemInfo.StaffID;
            this.Realname = BaseSystemInfo.UserRealname;
            this.Username = BaseSystemInfo.Username;
            this.Code = BaseSystemInfo.Code;
            this.Role = BaseSystemInfo.Role;
            this.Password = BaseSystemInfo.Password;
            this.RoleFullName = BaseSystemInfo.RoleFullName;
            this.CompanyID = BaseSystemInfo.UserCompanyID;
            this.CompanyCode = BaseSystemInfo.UserCompanyCode;
            this.CompanyFullName = BaseSystemInfo.UserCompanyFullName;
            this.DepartmentID = BaseSystemInfo.UserDepartmentID;
            this.DepartmentCode = BaseSystemInfo.UserDepartmentCode;
            this.DepartmentFullName = BaseSystemInfo.UserDepartmentFullName;
            this.CurrentLanguage = BaseSystemInfo.CurrentLanguage;
            this.Themes = BaseSystemInfo.Themes;
            this.IPAddress = BaseSystemInfo.IPAddress;
            this.MACAddress = BaseSystemInfo.MACAddress;
            this.IsAdministrator = BaseSystemInfo.IsAdministrator;
        }

        public string Code
        {
            get
            {
                return this.code;
            }
            set
            {
                this.code = value;
            }
        }

        public string CompanyCode
        {
            get
            {
                return this.companyCode;
            }
            set
            {
                this.companyCode = value;
            }
        }

        public string CompanyFullName
        {
            get
            {
                return this.companyFullName;
            }
            set
            {
                this.companyFullName = value;
            }
        }

        public string CompanyID
        {
            get
            {
                return this.companyID;
            }
            set
            {
                this.companyID = value;
            }
        }

        public string CurrentLanguage
        {
            get
            {
                return this.currentLanguage;
            }
            set
            {
                this.currentLanguage = value;
            }
        }

        public string DepartmentCode
        {
            get
            {
                return this.departmentCode;
            }
            set
            {
                this.departmentCode = value;
            }
        }

        public string DepartmentFullName
        {
            get
            {
                return this.departmentFullName;
            }
            set
            {
                this.departmentFullName = value;
            }
        }

        public string DepartmentID
        {
            get
            {
                return this.departmentID;
            }
            set
            {
                this.departmentID = value;
            }
        }

        public string Description
        {
            get
            {
                return this.description;
            }
            set
            {
                this.description = value;
            }
        }

        public string ID
        {
            get
            {
                return this.id;
            }
            set
            {
                this.id = value;
            }
        }

        public string IPAddress
        {
            get
            {
                return this.ipAddress;
            }
            set
            {
                this.ipAddress = value;
            }
        }

        public bool IsAdministrator
        {
            get
            {
                return this.isAdministrator;
            }
            set
            {
                this.isAdministrator = value;
            }
        }

        public string MACAddress
        {
            get
            {
                return this.macAddress;
            }
            set
            {
                this.macAddress = value;
            }
        }

        public string Password
        {
            get
            {
                return this.password;
            }
            set
            {
                this.password = value;
            }
        }

        public string Realname
        {
            get
            {
                return this.realname;
            }
            set
            {
                this.realname = value;
            }
        }

        public string Role
        {
            get
            {
                return this.role;
            }
            set
            {
                this.role = value;
            }
        }

        public string RoleFullName
        {
            get
            {
                return this.roleFullName;
            }
            set
            {
                this.roleFullName = value;
            }
        }

        public string StaffID
        {
            get
            {
                return this.staffID;
            }
            set
            {
                this.staffID = value;
            }
        }

        public string SUID
        {
            get
            {
                return this.suid;
            }
            set
            {
                this.suid = value;
            }
        }

        public string Themes
        {
            get
            {
                return this.themes;
            }
            set
            {
                this.themes = value;
            }
        }

        public string Username
        {
            get
            {
                return this.userName;
            }
            set
            {
                this.userName = value;
            }
        }

        public string WebServicePassword
        {
            get
            {
                return this.webServicePassword;
            }
            set
            {
                this.webServicePassword = value;
            }
        }

        public string WebServiceUsername
        {
            get
            {
                return this.webServiceUsername;
            }
            set
            {
                this.webServiceUsername = value;
            }
        }

        public string WorkgroupCode
        {
            get
            {
                return this.workgroupCode;
            }
            set
            {
                this.workgroupCode = value;
            }
        }

        public string WorkgroupFullName
        {
            get
            {
                return this.workgroupFullName;
            }
            set
            {
                this.workgroupFullName = value;
            }
        }

        public string WorkgroupID
        {
            get
            {
                return this.workgroupID;
            }
            set
            {
                this.workgroupID = value;
            }
        }
    }
}